#ifndef RESPONSE_H
#define RESPONSE_H
#include "../GitStoreMeta/ErrorCode.h"
#include "json/json.h"

namespace gitstore {

struct Response {
    Response();
    Response(ErrorStatus s);
    Response(ErrorStatus s, const Json::Value& d);

    operator std::string() const;

    ErrorStatus status;
    std::string msg;
    Json::Value data;
};
}
#endif // RESPONSE_H
